Efficient parity determination in zoned solid-state drives of a storage system

ABSTRACT

Methods and systems for a storage environment are provided. One method includes copying a data unit from a first temporary storage location corresponding to each zoned solid-state drive (ZNS SSD) of a first ZNS SSD set of a storage system to a first XOR module, while determining a first partial horizontal parity using the data unit stored in the first temporary storage location; and determining a vertical parity for each ZNS SSD of the first ZNS SSD set using the data unit provided to the first XOR module in a current cycle and vertical parity determined from a previous cycle.

TECHNICAL FIELD

The present disclosure relates to storage environments and moreparticularly, to determining horizontal and vertical parity for datastored in zoned solid-state drives of a RAID (redundant array ofindependent disks) system.

BACKGROUND

Various forms of storage systems are used today. These forms includedirect attached storage (DAS) network attached storage (NAS) systems,storage area networks (SANs), and others. Network storage systems arecommonly used for a variety of purposes, such as providing multipleusers with access to shared data, backing up data and others.

A storage system typically includes at least one computing systemexecuting a storage operating system for storing and retrieving data onbehalf of one or more client computing systems (“clients”). The storageoperating system stores and manages shared data containers in a set ofmass storage devices operating in a group of a storage sub-system. Thestorage devices (may also be referred to as “disks”) within a storagesystem are typically organized as one or more groups (or arrays),wherein each group is operated as a RAID.

Most RAID implementations enhance reliability/integrity of data storagethrough redundant writing of data “stripes” across a given number ofphysical drives in the RAID group and storing parity data associatedwith striped data in dedicated parity drives. A storage device may failin a storage sub-system. Data can be lost when one or more storagedevices fail. The parity data is used to protect against loss of data ina RAID group. RAID6 and RAID-DP (RAID-Dual Parity) type protection istypically employed to protect RAID groups against dual drive failures.

Computing parity can be resource intensive because it uses computingresources, including storage server processors and memory units (e.g., acache). Continuous efforts are being made to develop technology forefficiently computing parity in a RAID system, especially in a RAIDsystem with solid state drives (SSDs).

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing features and other features will now be described withreference to the drawings of the various aspects. In the drawings, thesame components have the same reference numerals. The illustratedaspects are intended to illustrate, but not to limit the presentdisclosure. The drawings include the following Figures:

FIG. 1A shows an example of an operating environment for the variousaspects disclosed herein;

FIG. 1B shows illustrates configuration of ZNS (Zone Namespace) SSDs(solid state drives), according to one aspect of the present disclosure;

FIG. 1C provides another example of the ZNS SSD configuration, accordingto one aspect of the present disclosure;

FIG. 1D shows an example of a software architecture for using ZNS SSDsin a storage system, according to one aspect of the present disclosure;

FIG. 1E shows a process for initializing PZones and RZones of a ZNS SSD,according to one aspect of the present disclosure;

FIG. 2A shows a conventional technique for horizontal and diagonalparity generation;

FIG. 2B shows a system for generating horizontal and vertical parity bya processor, according to one aspect of the present disclosure;

FIG. 2C shows the details of the system of FIG. 2B, according to oneaspect of the present disclosure;

FIG. 2D shows a multi-processor system for generating horizontal andvertical parity, according to one aspect of the present disclosure;

FIG. 2E shows a process for generating horizontal and vertical parity,according to one aspect of the present disclosure;

FIG. 2F shows another process for generating horizontal and verticalparity, according to one aspect of the present disclosure;

FIG. 3 shows an example of a storage operating system, used according toone aspect of the present disclosure; and

FIG. 4 shows an example of a processing system, used according to oneaspect of the present disclosure.

DETAILED DESCRIPTION

In one aspect, innovative technology is disclosed for efficientlygenerating horizontal and vertical parity for data stored at zonednamespace solid state drives (“ZNS SSDs”) in a RAID configuration. A ZNSSSD has individual media units (“MUs”) that operate independent of eachother to store information. Storage space at each ZNS SSD is exposed aszones. The zones are configured using the independent MUs, which enablesthe MUs to operate as individual drives of a RAID group. A first tierRAID layer configures the storage space of ZNS SSDs into physical zones(“PZones”) spread uniformly across the MUs. Each MU is configured toinclude a plurality of PZones. The first tier RAID layer configures aplurality of RAID zones (“RZones”), each having a plurality of PZones.The RZones are presented to other layers, e.g., a tier 2 RAID layer thatinterfaces with a file system to process read and write requests. Thetier 2 RAID layer and the file system manager only see the RZone, andthe tier 1 layer manages data at the PZone level.

Horizontal parity is determined by XORing data stored across ahorizontal stripe having a plurality of RZones (one from each SSD in thetier 2 RAID layer). The horizontal parity data is stored at a singleparity ZNS SSD. Vertical parity is determined for data stored at eachZNS SSD and stored within a parity PZone of each ZNS SSD. If a block ora MU fails, then the parity data stored at the individual ZNS SSD, orthe parity drive is used to reconstruct data. This provides RAID-6 andRAID-DP type parity protection without having to use two or morededicated parity drives.

In one aspect, innovative technology is disclosed for determiningvertical parity for each ZNS SSD of a RAID group and horizontal (or row)parity for data stored across a plurality of rows of the ZNS SSDs byreducing cache line reloading. To determine horizontal parity, datastored within a data page of each ZNS SSD is loaded into a cache line ofa cache of a storage server. Data from the cache line is loaded into ahorizontal parity register corresponding to each ZNS SSD and then XORedto determine horizontal parity. Simultaneously, data from the horizontalparity register is provided to a vertical parity XOR module for each ZNSSSD. The vertical parity XOR module XORs the data received from thehorizontal parity register for a current cycle and a vertical parityfrom a previous cycle to determine the vertical parity for the currentcycle. The vertical parity XOR module continues to cycle through untildata stored by a last row of the ZNS SSD has been XORed. This process isefficient because vertical parity and horizontal parity are determinedwithin a same cycle by continuously transferring data from a cache lineto a horizontal parity register, a horizontal parity XOR module and thevertical parity XOR module without having to expend additionalprocessing cycles in cache line reloading as described below in detail.

The innovative technology is also advantageous in a multi-processorenvironment, where multiple ZNS SSDs are assigned to each processor. Forexample, a first processor is assigned to a first set of ZNS SSDs. Thefirst processor determines the horizontal parity (P1) for data storedacross each ZNS SSDs. The first processor also determines the verticalparity for each ZNS SSD. A second processor is assigned to a second setof ZNS SSDs. The second processor determines the horizontal parity (P2)for data stored across each ZNS SSDs. The second processor alsodetermines the vertical parity for each ZNS SSD. A third processor takesP1 and P2 of each row of data stored by the ZNS SSDs of the first setand the second set to determine the horizontal parity across both setsof ZNS SSDs. The third processor also determines the vertical paritybased on the horizontal parity determined by the third processor, asdescribed below in detail.

As a preliminary note, the terms “component”, “module”, “system,” andthe like as used herein are intended to refer to a computer-relatedentity, either software-executing general-purpose processor, hardware,firmware and a combination thereof. For example, a component may be, butis not limited to being, a process running on a hardware processor, ahardware processor, an object, an executable, a thread of execution, aprogram, and/or a computer.

By way of illustration, both an application running on a server and theserver can be a component. One or more components may reside within aprocess and/or thread of execution, and a component may be localized onone computer and/or distributed between two or more computers. Also,these components can execute from various computer readable media havingvarious data structures stored thereon. The components may communicatevia local and/or remote processes such as in accordance with a signalhaving one or more data packets (e.g., data from one componentinteracting with another component in a local system, distributedsystem, and/or across a network such as the Internet with other systemsvia the signal).

Computer executable components can be stored, for example, atnon-transitory, computer readable media including, but not limited to,an ASIC (application specific integrated circuit), CD (compact disc),DVD (digital video disk), ROM (read only memory), floppy disk, harddisk, storage class memory, solid state drive, EEPROM (electricallyerasable programmable read only memory), memory stick or any otherstorage device type, in accordance with the claimed subject matter.

System 100: FIG. 1A shows an example of a networked operatingenvironment 100 (also referred to as system 100) used according to oneaspect of the present disclosure. As an example, system 100 may includea plurality of storage servers 108A-108N (may also be referred to asstorage server/storage servers/storage controller/storage controllers108) executing a storage operating system 114A-114N (may also bereferred to as storage operating system 114 or storage operating systems114), a plurality of computing systems 104A-104N (may also be referredto as server system/server systems 104 or as host system/host systems104) that may access storage space provided by a storage-subsystem 112managed by the storage servers 108 via a connection system 116 such as alocal area network (LAN), wide area network (WAN), the Internet andothers. The storage-subsystem 112 includes a plurality of storagedevices 110A-110N (may also be referred to as storage device/storagedevices/disk/disks 110) described below in detail. In one aspect,storage devices 110 are ZNS SSDs and are referred to as ZNS SSD or ZNSSSDs 110, as described below in detail. It is noteworthy that the term“disk” as used herein is intended to mean any storage device/space andnot to limit the adaptive aspects to any storage device, for example,hard disks.

The server systems 104 may communicate with each other via connectionsystem 116, for example, for working collectively to provide data-accessservice to user consoles (not shown). Server systems 104 may becomputing devices configured to execute applications 106A-106N (may bereferred to as application or applications 106) over a variety ofoperating systems, including the UNIX® and Microsoft Windows® operatingsystems (without derogation of any third-party rights). Application 106may include an email exchange application, a database application, orany other type of application. In another aspect, application 106 maycomprise a virtual machine. Applications 106 may utilize storage devices110 to store and access data.

Server systems 104 generally utilize file-based access protocols whenaccessing information (in the form of files and directories) over anetwork attached storage (NAS)-based network. Alternatively, serversystems 104 may use block-based access protocols, for example but notlimited to, the Small Computer Systems Interface (SCSI) protocolencapsulated over TCP (iSCSI) and SCSI encapsulated over Fibre Channel(FCP) to access storage via a storage area network (SAN). TCP stands forTransmission Control Protocol that is used in network communication.

Server 104 may also execute a virtual machine environment, according toone aspect. In the virtual machine environment, a physical resource istime-shared among a plurality of independently operating processorexecutable virtual machines (VMs). Each VM may function as aself-contained platform, running its own operating system (OS) andcomputer executable, application software. The computer executableinstructions running in a VM may be collectively referred to herein as“guest software”. In addition, resources available within the VM may bereferred to herein as “guest resources”.

The guest software expects to operate as if it were running on adedicated computer rather than in a VM. That is, the guest softwareexpects to control various events and have access to hardware resourceson a physical computing system (may also be referred to as a hostplatform) which maybe referred to herein as “host hardware resources”.The host hardware resource may include one or more processors, resourcesresident on the processors (e.g., control registers, caches and others),memory (instructions residing in memory, e.g., descriptor tables), andother resources (e.g., input/output devices, host attached storage,network attached storage or other like storage) that reside in aphysical machine or are coupled to the host platform.

In one aspect, the storage servers 108 use the storage operating system114 to store and retrieve data from the storage sub-system 112 byaccessing the ZNS SSDs 110 via storage device controllers 102A-102N (mayalso be referred to as disk controller/disk controllers 110). Data isstored and accessed using read and write requests that are also referredto as input/output (I/O) requests.

The storage devices 110 may include writable storage device media suchas magnetic disks, video tape, optical, DVD, magnetic tape, non-volatilememory devices for example, self-encrypting drives, flash memorydevices, ZNS SSDs and any other similar media adapted to storeinformation. The storage devices 110 may be organized as one or moreRAID groups. The various aspects disclosed herein are not limited to anystorage device type or storage device configuration.

In one aspect, ZNS SSDs 110 comply with the NVMe (Non-Volatile MemoryHost Controller Interface) zoned namespace (ZNS) specification definedby the NVM Express™ (NVMe™) standard organization. An SSD “zone” asdefined by the NVMe ZNS standard is a sequence of blocks that can onlybe written in a sequential fashion and are overwritten by performing a“Zone Erase” or “Zone Reset operation” per the NVMe specification. A ZNSSSD storage space is exposed as zones. MUs of a ZNS SSD operateindependent of each other to store information and are managed by thestorage device controller 102. The zones are configured using theindependent MUs, which enables the MUs to operate as individual drivesof a RAID group. This enables the storage sub-system 112 to use a singleparity ZNS SSD to store parity data and distribute the parity datawithin each ZNS SSD of a RAID group.

In one aspect, to facilitate access to ZNS SSDs 110, the storageoperating system 114 “virtualizes” the storage space provided by ZNSSSDs 110. The storage server 108 can present or export data stored atZNS SSDs 110 to server systems 104 as a storage volume or one or moreqtree sub-volume units. Each storage volume may be configured to storedata files (or data containers or data objects), scripts, wordprocessing documents, executable programs, and any other type ofstructured or unstructured data. From the perspective of the serversystems, each volume can appear to be a single drive. However, eachvolume can represent the storage space in one storage device, anaggregate of some or all the storage space in multiple storage devices,a RAID group, or any other suitable set of storage space.

The storage server 108 may be used to access information to and from ZNSSSDs 110 based on a request generated by server system 104, a managementconsole (or system) 118 or any other entity. The request may be based onfile-based access protocols, for example, the CIFS or the NFS protocol,over TCP/IP (Internet Protocol). Alternatively, the request may useblock-based access protocols, for example, iSCSI or FCP.

As an example, in a typical mode of operation, server system 104transmits one or more input/output (I/O) commands, such as an NFS orCIFS request, over connection system 116 to the storage server 108. Thestorage operating system 114 generates operations to load (retrieve) therequested data from ZNS 110 if it is not resident “in-core,” i.e., atthe memory of the storage server. If the information is not in thememory, the storage operating system retrieves a logical volume blocknumber (VBN) that is mapped to a disk identifier and disk block number(Disk, DBN). The DPN is accessed from a ZNS SSD by the storage devicecontroller 102 and loaded in memory for processing by the storage server108. Storage server 108 then issues an NFS or CIFS response containingthe requested data over the connection system 116 to the respectiveserver system 104.

In one aspect, storage server 108 may have a distributed architecture,for example, a cluster-based system that may include a separate networkmodule and storage module. Briefly, the network module is used tocommunicate with host platform server system 104 and management console118, while the storage module is used to communicate with the storagesubsystem 112.

The management console 118 executes a management application 117 that isused for managing and configuring various elements of system 100.Management console 118 may include one or more computing systems formanaging and configuring the various elements.

Parity Protection: Before describing the details of the presentdisclosure, a brief overview of parity protection in a RAIDconfiguration will be helpful. A parity value for data stored in storagesubsystem 112 can be computed by summing (usually modulo 2) data of aword size (usually one bit) across several similar ZNS SSD holdingdifferent data and then storing the results in a parity ZNS SSD. Thatis, parity may be computed on vectors 1-bit wide, composed of bits incorresponding positions on each ZNS SSD. When computed on vectors 1-bitwide, the parity can be either the computed sum or its complement; theseare referred to as even and odd parity, respectively. Addition andsubtraction on 1-bit vectors are both equivalent to exclusive-OR (XOR)logical operations. The data is protected against the loss of any one ofthe ZNS SSDs, or of any portion of the data on any one of the ZNS SSDs.If the ZNS SSD storing the parity is lost, the parity can be regeneratedfrom the data or from parity data stored within each ZNS SSD. If one ofthe ZNS SSD is lost, the data can be regenerated by adding the contentsof the surviving ZNS SSDs together and then subtracting the result fromthe stored parity data.

Typically, storage devices in a RAID configuration are divided intoparity groups, each of which comprises one or more data drive and aparity drive. A parity set is a set of blocks, including several datablocks and one parity block, where the parity block is the XOR of allthe data blocks. A parity group is a set of drives from which one ormore parity sets are selected. The storage space is divided intostripes, with each stripe containing one block from each drive. Theblocks of a stripe are usually at the same locations on each drive inthe parity group. Within a stripe, all but one block are blockscontaining data (“data blocks”) and one block is a block containingparity (“parity block”) computed by the XOR of all the data.

ZNS SSD RAID Configuration: FIG. 1B illustrates a Hierarchical RAIDimplementation providing dual parity protection (e.g., RAID6 andRAID-DP) using a single, ZNS SSD 110D as a parity drive to store paritydata, and ZNS SSDs 110A-110C as data drives storing data. Unlikeconventional systems that use two parity drives within a RAID group forproviding RAID 6 and RAID-DP type protection, only one parity drive 110Dis used.

Each ZNS SSD 110A-110D includes a plurality of storage blocks identifiedby disk block numbers (“DBNs”), shown as DBN0-DBNN (e.g., 126A-126N forZNS SSD 110A). The parity drive ZNS SSD 110D has similar DBNs shown as128A-128N for storing parity data. The parity data (also referred to ashorizontal parity) is computed by XORing data stored at disk blocks in ahorizontal stripe with the same DBN of each ZNS SSD data drive (i.e.,110A-110C). The computed parity is written to the same DBN on the paritydrive 110D. For example, the parity for data stored at the first disk(DBN0) of each ZNS SSD 110A-110C is stored at the DBN0 128A of ZNS SSD110D. This is referred to as TIER2 RAID for providing RAID protection ifa ZNS SSD fails or if a block of a ZNS SSD fails.

Vertical parity computed and stored at each ZNS SSD, is referred to asTIER1 RAID. An example of TIER1 RAID is shown for ZNS SSD 110B thatincludes a plurality of MUs 120A-120E. A plurality of zones isconfigured for the MUs 120A-120E, e.g., zones 122A-122C are based on MU120A, while parity zones 124A-124C are based on MU 120E to store paritydata. The zones within each ZNS SSD are spread uniformly across the MUs.Parity data (i.e., horizontal parity) for TIER1 RAID is computed acrosszones and stored at the parity zones 124A-124C within MU 120E. Bygrouping zones from independent MUs into a RAID stripe, TIER1 RAID canprovide data availability even if a block from one of the zonesencounters an uncorrectable read error or an entire MU is inaccessible.

FIG. 1C illustrates another representation of the innovative dual parityarchitecture having a single ZNS SSD 110D within a RAID group to storehorizontal parity data and storing vertical parity data at each ZNS SSDof the RAID group. A horizontal TIER2 RAID stripe is shown within therectangle 130 and the vertical TIER1 RAID stripe is shown within 132.The vertical TIER1 RAID parity (i.e., vertical parity) is also shown asL1P0 (134A-134C) in ZNS SSDs 110A-110C and written to disk blocks thatare internal to each ZNS SSD, i.e., these hidden disk blocks are notvisible to upper software layers (such as TIER2 RAID layer 136 and FileSystem 134 shown in FIG. 1D and described below in detail).

Software Architecture: FIG. 1D shows an example of the innovativesoftware architecture used for implementing the innovative technology ofthe present disclosure. The architecture includes the file systemmanager 134 within the storage operating system 114, described in detailbelow with respect to FIG. 3 . The TIER2 RAID layer 136 interfaces withthe file system manager 134 for processing I/O requests to read andwrite data. A zone translation layer (ZTL) 138 with a TIER1 RAID layer140 operates below the TIER2 RAID layer 136 for managing the zoneswithin the ZNS SSDs 110A-110D. As an example, the total storage capacityof each ZNS SSD is split across physical zones (PZones), e.g., 142 forZNS SSD 110A visible only to the TIER1 RAID layer 140. The PZones aregrouped by MUs, and each MU may contain a plurality of PZones. The TIER1RAID layer 140 groups PZones across multiple MUs into a RAID-Zone(“RZone”, e.g., RZone 0 144 for ZNS SSD 110A). After the TIER1 RAIDlayer 140 creates the RZones, the ZTL 138 and upper layers can view eachZNS SSD as a collection of RZones e.g., RZone 0 146A and RZone1 146Bshown for ZNS SSD 110A.

In one aspect, ZNS SSDs 110A-110D have defined rules for writing tozones. For example, a zone should be “open” for writing and the writesare sequential with increasing block numbers of the zone. To enablemultiple processors to write in parallel, the NVMe ZNS standard allowsthe ZNS SSDs to provide a Zone Random Write Area (ZRWA) for eachavailable zone. The ZRWA is a buffer within a memory where writes to anopen zone are gathered before being written to the PZones. ZRWA enableshigher software layers (e.g., file system manager 134 and the TIER2 RAIDlayer 136) to issue sequential write commands without the overhead ofguaranteeing that the writes arrive in the sequential order at the ZNSSSD. The data from the ZRWA is moved to the ZNS SSD zones via a “commitoperation.” An indication for the commit operation is provided by anupper layer software, e.g., the file system manager 134 and/or the TIER2RAID layer 136. The commit operation may be explicit or implicit. Anexplicit commit operation happens when a commit command is sent to theZNS SSD. An implicit operation commits data to a ZNS SSD zone, when theZNS SSD receives a write command, which if executed would exceed thesize of the ZRWA buffer (i.e., when the ZRWA buffer will reach athreshold value).

In one aspect, horizontal and vertical parity, as described below indetail is determined by the TIER2 RAID layer 136. In another aspect, thehorizontal and vertical parity is determined by the ZTL 138. In yetanother aspect, the horizontal and vertical parity is determined by theTIER1 RAID layer 140 or the storage device controller 102.

PZone/RZone Initialization: FIG. 1E shows a process 160 for initializingthe PZones and RZones by the TIER1 RAID layer 140, according to oneaspect of the present disclosure. The process begins in block B162,before a ZNS SSD 110 is made available within the storage sub-system112. In block B164, the TIER1 RAID layer 140 queries the ZNS SSDs forinformation regarding the PZones. Each ZNS SSD controller 102 executesfirmware instructions out of a ZNS SSD memory. The controller 102provides information regarding the PZones, which includes a PZoneaddress, size, starting offset value or any other information that canidentify the PZone.

In block B166, the TIER1 RAID layer 140 groups PZones across independentMUs (e.g., 120A-120E, FIG. 1B) to create RZones, e.g., 144 (FIG. 1D).Thereafter, in block B168, the RZones are presented to upper layers,e.g., the TIER2 RAID layer 136. The TIER2 RAID layer 136 can thenpresent RZones (e.g., 146A, 146B, FIG. 1D) to other layers, e.g., thefile system manager 134. The RZones and the PZones are then used forwriting and retrieving data, as well as for storing parity data, asdescribed below in detail. The process then ends in block B170.

Parity Generation: As mentioned above, the upper layers (e.g., the filesystem manager 134 and the TIER2 RAID layer 136) only see RZones (e.g.,146A/146B, FIG. 1D), hence all write I/Os that are received by the TIER1RAID layer 140 target an RZone. The TIER1 RAID layer 140 issues childI/Os to PZones based on a range of blocks that are targeted by the RZoneI/O sent by an upper software layer (134 or 136, FIG. 1D). The childI/Os are issued to write data that is temporarily stored at a pluralityof I/O buffers (not shown) in a storage server memory. The TIER1 RAIDlayer 140 computes parity blocks for a parity PZone corresponding to thetargeted RZone. The TIER1 RAID layer 140 issues a parity I/O for thecomputed parity stored at a parity buffer. The parity buffer may bedesignated within the storage server memory to store parity data. Theparity data is computed by XORing the data in the I/O buffers. It isnoteworthy that the parity buffer is written to the parity PZone andcommitted after all the blocks in a corresponding RZone stripe have beencommitted to the appropriate PZones.

Before describing the detailed innovative technology for determininghorizontal and vertical parity of the present disclosure, a descriptionof conventional parity determination will be helpful. FIG. 2A shows anexample of a conventional parity determination system to determinehorizontal and diagonal parity in a multi-processor environment. FIG. 2Ashows multiple CPUs 200A-200N that calculate horizontal parity anddiagonal parity. CPU 200A determines horizontal and diagonal parity fordata blocks 204A-204D, while CPU 200N determines horizontal and diagonalparity for data blocks 204E-204H. As an example, each row of data indata blocks 204A-204H may fit in a cache line. A cache line is thesmallest portion of data that can be mapped into a processor cache. Amapped cache line is associated with a core line, which is acorresponding region on a backend storage (e.g., ZNS SSDs 110A-110D).Both cache storage and the backend storage are split into blocks of thesize of a cache line, and all the cache mappings are typically alignedto these blocks.

CPU 200A determines horizontal parity (may also be referred to as rowparity) for row 0 and stores the horizontal parity 206A in a paritydrive. CPU 200A loads data from each cache line to determine thehorizontal parity and the diagonal parity 208A. The diagonal parity isshown as dp0, dp1, dp2, dp3 and so forth. Diagonal parity dp0 involvesrow 0, dp1 involves row 1 of data block 204A and row 0 of data block204B. dp1 is determined after CPU 200A has already loaded row 0 and row1 for data block 204A from a cache line. This approach is inefficientwhen both horizontal and vertical parity are determined because todetermine vertical parity, CPU 200A will have to move data from a rowthat may have been assigned to CPU 200N i.e., data blocks that are ownedby another CPU are loaded to determine vertical parity. This consumesadditional processing cycles and hence is undesirable. The innovativetechnology disclosed herein solves this technical challenge, asdescribed below in detail.

FIG. 2B shows a system 201A for efficiently generating horizontal andvertical parity, according to one aspect of the present disclosure.System 201A is based on using a single processor, shown as CPU0 200A. Inone aspect, CPU 200A is a central processing unit (“CPU”) of a storageserver 108 or a processor of the storage device controller 102. In oneaspect, CPU 200A is assigned a plurality of ZNS SSDs 216A-216D (similarto 110A-110D described above), shown as D0, D1, D2 and D3. The paritydrive 218 is used to store horizontal parity 224A-224N for data storedin each row 222A-222N across the ZNS SSDs 216A-216D. The horizontalparity is determined by H_(i)=D₀ XOR D₁ XOR D₂ XOR D₃ (shown as 212)i.e., by XORing all the data stored in each row 222A-222N. For example,the parity for row 224A is determined by XORing the data in row 224A bya horizontal XOR module 228B, the parity for row 222B is determined byXORing all the data in row 222B and so forth.

The vertical parity 226A-226D is stored at each ZNS SSD. The verticalparity is determined by V_(i)=V_(i) XOR D_(i) (shown as 210) i.e., byXORing all the data stored in a vertical column/stripe by a vertical XORmodule 228A. For example, data that is stored in row 222A and 222B areprovided to the vertical XOR module 228A to determine a vertical parityinvolving data stored by the first and second row of a specific column.The XOR module 228A cycles through all the rows of each column todetermine the vertical parity for the entire column i.e., 226A-222D.

FIG. 2C shows a detailed block diagram of system 201A for determiningthe horizontal and vertical parity by CPU 200A, according to one aspectof the present disclosure. CPU 200A has access to a cache (not shown),where data is stored in cache lines, e.g., 234A-234D and 250A-250Ddescribed below in detail.

In one aspect, a data page 230A-230D of ZNS SSDs 216A-216D stores datafor each ZNS SSD 230A-230D. The data page indicates the smallest segmentin which data is written to or read from ZNS SSDs 216A-216D. Each datapage is configured to store a plurality of data portions, e.g.,232A-232D sized to fit into a single cache line, e.g., 234A-234D. Todetermine horizontal parity, data from the cache line 234A-234D istransferred to horizontal parity registers 236A-236D (may also bereferred to as registers 236A-236D or first register 236A-236D). Thedata from registers 236A-236D is XORed by the horizontal XOR module 238E(may also be referred to as XOR module 238E (similar to 228B shown inFIG. 2B)). The horizontal parity from XOR module 238E is transferred toanother register 240 (may also be referred to as a third register) andthen to a cache line 242. The horizontal parity is then stored as HP0246 within a horizontal parity page 244.

To determine vertical parity for each data page 230A-230D, data from thehorizontal parity registers 236A-236D is copied to each correspondingvertical XOR module 238A-238D (similar to XOR module 228A of FIG. 2B),respectively, when the data is provided to the horizontal XOR module238E.

The following description provides details to determine vertical parityfor data stored at data page 0 230A including the data portion 232A. Thesame mechanism is applicable to data pages 230B-230D that store dataportions 232B-232D. As an example, while horizontal parity is beingdetermined by the XOR module 238E, data from register 236A is copied tothe vertical XOR module 238A. This is shown by arrow 256A. The verticalXOR module 238A determines the vertical parity using the data fromregister 236A and a previous vertical parity determined from a previouscycle and provided to the XOR module 238A, as shown by arrows 256E and256F. The vertical parity determined by XOR module 238A for a currentcycle is transferred to a vertical parity register 248A (may also bereferred to as a second register). This is shown by arrow 256B. Thevertical parity from register 248A is transferred to a cache line 250A,as shown by arrow 256C. The vertical parity from the cache line 250A isthen transferred to the vertical parity page 0 252A. This is shown byarrow 256D.

It is noteworthy that the vertical parity is determined by the verticalXOR module 238A in a loop i.e., as data is moved from register 236A inone cycle, the vertical parity determined from a previous cycle isprovided to the vertical XOR module 238A, as shown by arrows 256E and256F. The data from register 236A and the parity from the previous cycleare XORed. This continues until the last row of data (e.g., 222N, FIG.2B) for data page 0 230A has been XORed with the vertical paritycomprising of rows 0 to the second last row.

The mechanism used above for data page is also used for data page 1 230Bwith the data portion 232B, data page 2 230C with the data portion 232Cand data page 3 230D with the data portion 232D using cache lines234B-234D, registers 236B-236D, vertical XOR modules 238B-238D,registers 248B-248D, and cache lines 250B-250D, respectively. Similar tovertical parity 254A stored in vertical parity page 252A, the verticalparity 254B, 254C and 254D are stored in vertical parity pages 252B,252C and 252D, respectively.

Because data for determining horizontal and vertical parity are providedthe vertical and horizontal XOR modules simultaneously, CPU 200A canefficiently determine both the horizontal and vertical parity almostsimultaneously, without having to ask for data from other CPUs andreloading cache lines.

FIG. 2D shows a multi-processor system 201B with a plurality of CPUs200A-200C to efficiently determine both horizontal and vertical parityfor data stored across a plurality of ZNS SSDs 216A-216H (similar to110A-110D, FIG. 1B). CPU 200A is assigned ZNS SSDs 216A-216D, while CPU200B is assigned ZNS SSDs 216E-216H. CPU 200A using the XOR module 228Adetermines the vertical parity 226A-226D for data stored at ZNS SSDs216A-216D, as described above with respect to FIGS. 2B and 2C,respectively. CPU 200B using the XOR module 228C determines the verticalparity 226E-226H for data stored at ZNS SSDs 216E-216H, respectively, asdescribed above with respect to FIGS. 2B and 2C.

CPU 200A also determines the horizontal parity 225A-225N for rows222A-222N using XOR module 228B, as described above with respect toFIGS. 2B/2C. The horizontal parity 225A-222N for each row 222A-222N isstored at the parity drive 218. CPU 200B determines the horizontalparity 227A-227N for rows 223A-223N using the horizontal XOR module228D. The horizontal parity 227A-227N for each row 223A-223N is alsostored at parity drive 218. CPU 200C determines the horizontal parity229A-229N across all rows of ZNS SSDs 216A-216H by XORing the partialhorizontal parity 225A-225N and 227A-227N using the horizontal parityXOR module 228E.

The horizontal parity 229A-229N of each row is used to determine thevertical parity 231 using the vertical parity XOR module 228F. Thevertical parity 231 is determining by cycling through the horizontalparity 229A-229N by the vertical parity XOR nodule 228F, as describedabove with respect to FIGS. 2B and 2C.

Process Flows: FIG. 2E shows a process 260 for efficiently determiningboth horizontal and vertical parity by a processor (e.g., CPU 200A,FIGS. 2B/2C). In one aspect, process 260 is described with respect tothe system 201A of FIGS. 2B/2C described above in detail.

Process 260 begins when data is being written to ZNS SSDs 216A-216D. Inone aspect, data is written at a page level, e.g., data pages 230A-230Dof FIG. 2C. In block B264, a portion of the data page (e.g., 232A-232D)is loaded into horizontal parity registers 236A-236D via cache lines234A-234D.

In block B266, data from registers 236A-236D are XORed by the horizontalXOR module 238E (FIG. 2C) or 228B (FIG. 2B) to determine the horizontalparity for data stored across ZNS SSDs 216A-216D. At the same time, datafrom registers 236A-236D is provided to the vertical parity XOR modules238A-238D to determine the vertical parity in block B268. The verticalparity for a current cycle is determined by XORing data from registers236A-236D and a vertical parity retrieved from a previous cycle, asshown by arrows 256E and 256F.

The process of blocks B266 and B268 continue in block B270 until theprocess cycles through all the stored data to determine the horizontalparity across a plurality of rows. The vertical parity is determined bythe vertical XOR modules 238A-238D by cycling through data fromregisters 236A-236D as well as the vertical parity from registers248A-248D, as shown in FIG. 2C.

Because data from registers 236A-236D is used to simultaneouslydetermine the horizontal and vertical parities, CPU 200A can efficientlyperform this task by moving data from the cache lines 234A-234D to theXOR modules, without cache line reloading. In a multi-processorenvironment, as described below, CPU 200A does not need to obtaininformation from another CPU to determine vertical parity.

FIG. 2F shows a process 272 for efficiently determining horizontal andvertical parity in a multi-processor environment 201B, as shown in FIG.2D and described above. Process 274 begins in block B274. In block B276,each processor is assigned a plurality of ZNS SSDs. For example, CPU200A is assigned SSDs 216A-216D, while processor 200B is assigned ZNSSSDs 216E-216H, as shown in FIG. 2D.

In block B278, each CPU 200A and 200B determines horizontal parity andvertical parity using the process 260 of FIG. 2E described above indetail.

In block B280, the third CPU 200C determines the horizontal parity229A-229N and the vertical parity 231 using XOR modules 228E and 228F,as shown in FIG. 2D.

In block B282, the vertical parity 226A-226H is stored at each ZNS SSD.The horizontal parity 229A-229N is stored at the parity ZNS SSD 218 withthe vertical parity 231 determined from the horizontal parity 229A-229N.

The innovative technology disclosed herein enables multiple processors(e.g., 200A and 200B) to determine horizontal and vertical parity acrossassigned ZNS SSDs. One of the processors (e.g., 200C) can startdetermining horizontal parity and vertical immediately after 200A and200B have determined the parity for the first row across ZNS SSDs216A-216H. When CPU 200A and 200B have completed process 260 of FIG. 2E,a cycle later, CPU 200C completes process blocks B280 and B282.

In one aspect, innovative computing technology for a method is provided.The method includes providing, by a first processor (e.g., 200A, FIG.2D), for a current cycle, a data unit from a first register (e.g., 236A,FIG. 2C) corresponding to each zoned solid-state drive (ZNS SSD) of afirst ZNS SSD set (e.g., 216A-216D, FIG. 2B) of a storage system to afirst vertical parity XOR module (e.g. 238A-238D) corresponding to eachZNS SSD of the first ZNS SSD set, and simultaneously determining a firstpartial horizontal parity (e.g., 225A-225N, FIG. 2D) using the data unitstored in the first register of each ZNS SSD of the first ZNS SSD set;determining, by the first processor, a vertical parity (e.g., 226A-226D,FIG. 2D) for each ZNS SSD of the first ZNS SSD set using the data unitprovided to the first vertical parity XOR module in the current cycleand vertical parity determined from a previous cycle.

The method further includes providing, by a second processor (e.g.200B), for the current cycle, a data unit from a second registercorresponding to each ZNS SSD (e.g. 216E-216H) of a second ZNS SSD setof the storage system to a second vertical parity XOR modulecorresponding to each ZNS SSD of the second ZNS SSD set, andsimultaneously determining a second partial horizontal parity using thedata unit stored in the second register of each ZNS SSD of the secondZNS SSD set; determining, by the second processor, a vertical parity foreach ZNS SSD of the second ZNS SSD set using the data unit provided tothe second vertical parity XOR module in the current cycle and verticalparity determined from the previous cycle;

The method further includes utilizing, by a third processor (e.g. 200C),the first and second partial horizontal parity (e.g. 225A-225N and227A-227N) to determine horizontal parity for data stored across eachrow of each ZNS SSD of the first and second ZNS SSD sets, the horizontalparity stored in a parity drive (e.g., 218, FIG. 2D); and determining,by the third processor, a vertical parity (e.g., 231, FIG. 2D) for theparity drive from the horizontal parity stored at each row of the paritydrive.

In another aspect, a non-transitory, machine-readable storage mediumhaving stored thereon instructions for performing a method (e.g., 260and/or 262), comprising machine executable code which when executed byat least one machine, causes the machine to: copy a data unit from afirst temporary storage location (e.g., 236A, FIG. 2C) corresponding toeach zoned solid-state drive (ZNS SSD) (e.g., 216A-216D, FIG. 2B) of afirst ZNS SSD set of a storage system to a first XOR module (e.g., 238A,FIG. 2C), while determining a first partial horizontal parity using thedata unit stored in the first temporary storage location; and determinea vertical parity for each ZNS SSD of the first ZNS SSD set using thedata unit provided to the first XOR module in a current cycle andvertical parity determined from a previous cycle.

Storage Operating System: FIG. 3 illustrates a generic example ofoperating system 114 executed by storage server 108, according to oneaspect of the present disclosure. Storage operating system 114interfaces with the storage sub-system 112 as described above in detail.

As an example, operating system 114 may include several modules, or“layers”. These layers include a file system manager 134 that keepstrack of a directory structure (hierarchy) of the data stored in storagedevices and manages read/write operations, i.e., executes read/writeoperations on disks in response to server system 104 requests.

Operating system 114 may also include a protocol layer 303 and anassociated network access layer 305, to allow storage server 108 tocommunicate over a network with other systems, such as server system104, and management console 118. Protocol layer 303 may implement one ormore of various higher-level network protocols, such as NFS, CIFS,Hypertext Transfer Protocol (HTTP), TCP/IP and others.

Network access layer 305 may include one or more drivers, whichimplement one or more lower-level protocols to communicate over thenetwork, such as Ethernet. Interactions between server systems 104 andthe storage sub-system 112 are illustrated schematically as a path,which illustrates the flow of data through operating system 114.

The operating system 114 may also include a storage access layer 307 andan associated storage driver layer 309 to communicate with a storagedevice. The storage access layer 307 may implement a higher-level diskstorage protocol, such as TIER2 RAID layer 136, ZTL 138 and TIER1 RAIDlayer 140, while the storage driver layer 309 may implement alower-level storage device access protocol, such as the NVMe protocol.

It should be noted that the software “path” through the operating systemlayers described above needed to perform data storage access for aclient request may alternatively be implemented in hardware. That is, inan alternate aspect of the disclosure, the storage access request datapath may be implemented as logic circuitry embodied within a fieldprogrammable gate array (FPGA) or an ASIC. This type of hardwareimplementation increases the performance of the file service provided bystorage server 108.

As used herein, the term “storage operating system” generally refers tothe computer-executable code operable on a computer to perform a storagefunction that manages data access and may implement data accesssemantics of a general-purpose operating system. The storage operatingsystem can also be implemented as a microkernel, an application programoperating over a general-purpose operating system, such as UNIX® orWindows XP®, or as a general-purpose operating system with configurablefunctionality, which is configured for storage applications as describedherein.

In addition, it will be understood to those skilled in the art that theinvention described herein may apply to any type of special-purpose(e.g., file server, filer or storage serving appliance) orgeneral-purpose computer, including a standalone computer or portionthereof, embodied as or including a storage system. Moreover, theteachings of this disclosure can be adapted to a variety of storagesystem architectures including, but not limited to, a network-attachedstorage environment, a storage area network and a disk assemblydirectly-attached to a client or host computer. The term “storagesystem” should therefore be taken broadly to include such arrangementsin addition to any subsystems configured to perform a storage functionand associated with other equipment or systems.

Processing System: FIG. 4 is a high-level block diagram showing anexample of the architecture of a processing system, at a high level, inwhich executable instructions as described above can be implemented. Theprocessing system 400 can represent the storage server 108, themanagement console 118, server systems 104, and others. Note thatcertain standard and well-known components which are not germane to thepresent invention are not shown in FIG. 4 .

The processing system 400 includes one or more processors 402 (similarto CPUs 200A-200C, described above) and memory 404, coupled to a bussystem 405. The bus system 405 shown in FIG. 4 is an abstraction thatrepresents any one or more separate physical buses and/or point-to-pointconnections, connected by appropriate bridges, adapters and/orcontrollers. The bus system 405, therefore, may include, for example, asystem bus, a Peripheral Component Interconnect (PCI) bus, aHyperTransport or industry standard architecture (ISA) bus, a smallcomputer system interface (SCSI) bus, a universal serial bus (USB), oran Institute of Electrical and Electronics Engineers (IEEE) standard1394 bus (sometimes referred to as “Firewire”).

The processors 402 are the central processing units (CPUs) of theprocessing system 400 and, thus, control its overall operation. Incertain aspects, the processors 402 accomplish this by executingprogrammable instructions stored in memory 404. A processor 402 may be,or may include, one or more programmable general-purpose orspecial-purpose microprocessors, digital signal processors (DSPs),programmable controllers, application specific integrated circuits(ASICs), programmable logic devices (PLDs), or the like, or acombination of such devices.

Memory 404 represents any form of random-access memory (RAM), read-onlymemory (ROM), flash memory, or the like, or a combination of suchdevices. Memory 404 includes the main memory of the processing system400. Instructions 406 which implements techniques introduced above mayreside in and may be executed (by processors 402) from memory 404. Forexample, instructions 406 may include code for executing the processblocks of FIGS. 1E, and 2E-2F.

Also connected to the processors 402 through the bus system 405 are oneor more internal mass storage devices 410, and a network adapter 412.Internal mass storage devices 410 may be or may include any conventionalmedium for storing large volumes of data in a non-volatile manner, suchas one or more magnetic or optical based disks. The network adapter 412provides the processing system 400 with the ability to communicate withremote devices (e.g., storage servers) over a network and may be, forexample, an Ethernet adapter, a FC adapter, or the like. The processingsystem 400 also includes one or more input/output (I/O) devices 408coupled to the bus system 405. The I/O devices 408 may include, forexample, a display device, a keyboard, a mouse, etc.

Cloud Computing: The system and techniques described above areapplicable and especially useful in the cloud computing environmentwhere storage at ZNS 110 is presented and shared across differentplatforms. Cloud computing means computing capability that provides anabstraction between the computing resource and its underlying technicalarchitecture (e.g., servers, storage, networks), enabling convenient,on-demand network access to a shared pool of configurable computingresources that may be rapidly provisioned and released with minimalmanagement effort or service provider interaction. The term “cloud” isintended to refer to a network, for example, the Internet and cloudcomputing allows shared resources, for example, software and informationto be available, on-demand, like a public utility.

Typical cloud computing providers deliver common business applicationsonline which are accessed from another web service or software like aweb browser, while the software and data are stored remotely on servers.The cloud computing architecture uses a layered approach for providingapplication services. A first layer is an application layer that isexecuted at client computers. In this example, the application allows aclient to access storage via a cloud.

After the application layer is a cloud platform and cloudinfrastructure, followed by a “server” layer that includes hardware andcomputer software designed for cloud specific services. The storagesystems described above may be a part of the server layer for providingstorage services. Details regarding these layers are not germane to theinventive aspects.

Thus, a method and apparatus for protecting data using ZNS SSDs withinsystem 100 have been described. Note that references throughout thisspecification to “one aspect” or “an aspect” mean that a particularfeature, structure or characteristic described in connection with theaspect is included in at least one aspect of the present invention.Therefore, it is emphasized and should be appreciated that two or morereferences to “an aspect” or “one aspect” or “an alternative aspect” invarious portions of this specification are not necessarily all referringto the same aspect. Furthermore, the features, structures orcharacteristics being referred to may be combined as suitable in one ormore aspects of the present disclosure, as will be recognized by thoseof ordinary skill in the art.

While the present disclosure is described above with respect to what iscurrently considered its preferred aspects, it is to be understood thatthe disclosure is not limited to that described above. To the contrary,the disclosure is intended to cover various modifications and equivalentarrangements within the spirit and scope of the appended claims.

What is claimed is:
 1. A method, comprising; providing, by a firstprocessor, for a current cycle, a data unit from a first registercorresponding to each zoned solid-state drive (ZNS SSD) of a first ZNSSSD set of a storage system to a first vertical parity XOR modulecorresponding to each ZNS SSD of the first ZNS SSD set, andsimultaneously determining a first partial horizontal parity using thedata unit stored in the first register of each ZNS SSD of the first ZNSSSD set; determining, by the first processor, a vertical parity for eachZNS SSD of the first ZNS SSD set using the data unit provided to thefirst vertical parity XOR module in the current cycle and verticalparity determined from a previous cycle; providing, by a secondprocessor, for the current cycle, a data unit from a second registercorresponding to each ZNS SSD of a second ZNS SSD set of the storagesystem to a second vertical parity XOR module corresponding to each ZNSSSD of the second ZNS SSD set, and simultaneously determining a secondpartial horizontal parity using the data unit stored in the secondregister of each ZNS SSD of the second ZNS SSD set; determining, by thesecond processor, a vertical parity for each ZNS SSD of the second ZNSSSD set using the data unit provided to the second vertical parity XORmodule in the current cycle and vertical parity determined from theprevious cycle; utilizing, by a third processor, the first and secondpartial horizontal parity to determine horizontal parity for data storedacross each row of each ZNS SSD of the first and second ZNS SSD sets,the horizontal parity stored in a parity drive; and determining, by thethird processor, a vertical parity for the parity drive from thehorizontal parity stored at each row of the parity drive.
 2. The methodof claim 1, further comprising: transferring, by the first processor,the data unit from a cache line to the first register.
 3. The method ofclaim 1, wherein the first partial horizontal parity, the second partialhorizontal parity and vertical parity for each ZNS is determined by aredundant array of independent disk (RAID) layer of the storage system.4. The method of claim 1, wherein determining the first partialhorizontal parity from data units stored in the first register of eachZNS SSD of the first ZNS SSD set further comprising: XORing, by thefirst processor, the data units of each of the first registercorresponding to each ZNS SSD.
 5. The method of claim 1, whereindetermining, by the third processor, the vertical parity, furthercomprising: XORing, by the third processor, the horizontal parity ofeach row of the parity drive.
 6. The method of claim 1, wherein thefirst partial horizontal parity, the second partial horizontal parityand vertical parity for each ZNS SSD is determined by a processorexecutable Zone Transfer Layer (ZTL) of the storage system, the ZTLinterfacing with a RAID layer and a storage sub-system comprising thefirst ZNS SSD set and the second ZNS SSD set.
 7. The method of claim 1,further comprising: storing, by the third processor, the horizontalparity to a third register and transferring the horizontal parity fromthe third register to the parity drive.
 8. A non-transitory,machine-readable storage medium having stored thereon instructions forperforming a method, comprising machine executable code which whenexecuted by at least one machine, causes the machine to: copy a dataunit from a first temporary storage location corresponding to each zonedsolid-state drive (ZNS SSD) of a first ZNS SSD set of a storage systemto a first XOR module, while determining a first partial horizontalparity using the data unit stored in the first temporary storagelocation; and determine a vertical parity for each ZNS SSD of the firstZNS SSD set using the data unit provided to the first XOR module in acurrent cycle and vertical parity determined from a previous cycle. 9.The non-transitory, machine-readable storage medium of claim 8, whereinthe machine executable code which when executed by at least one machine,further causes the machine to: copy a data unit from a second temporarystorage location corresponding to each ZNS SSD of a second ZNS SSD setof the storage system to a second XOR module corresponding to each ZNSSSD of the second ZNS SSD set, while determining a second partialhorizontal parity using the data unit stored in the second temporarystorage location; and determine a vertical parity for each ZNS SSD ofthe second ZNS SSD set using the data unit provided to the second XORmodule in the current cycle and vertical parity determined from theprevious cycle.
 10. The non-transitory, machine-readable storage mediumof claim 9, wherein the machine executable code which when executed byat least one machine, further causes the machine to: utilize the firstand second partial horizontal parity to determine horizontal parity fordata stored across each row of each ZNS SSD of the first and second ZNSSSD sets, the horizontal parity stored in a parity drive; and determinea vertical parity for the parity drive from the horizontal parity storedat each row of the parity drive.
 11. The non-transitory,machine-readable storage medium of claim 8, wherein the machineexecutable code which when executed by at least one machine, furthercauses the machine to: transfer the data unit from a cache line to thefirst temporary storage location.
 12. The non-transitory,machine-readable storage medium of claim 8, wherein the machineexecutable code which when executed by at least one machine, furthercauses the machine to: determine the vertical parity of the parity driveby XORing the horizontal parity of each row of the parity drive.
 13. Thenon-transitory, machine-readable storage medium of claim 12, wherein themachine executable code which when executed by at least one machine,further causes the machine to: determine the first partial horizontalparity from data units stored in the first temporary storage locationcorresponding to each ZNS SSD by XORing the data units of each of thefirst temporary storage location.
 14. A system, comprising: a memorycontaining machine readable medium comprising machine executable codehaving stored thereon instructions; and a processor module coupled tothe memory; the processor module configured to execute the machineexecutable code to: copy a data unit from a first temporary storagelocation corresponding to each zoned solid-state drive (ZNS SSD) of afirst ZNS SSD set of a storage system to a first XOR module, whiledetermining a first partial horizontal parity using the data unit storedin the first temporary storage location; and determine a vertical parityfor each ZNS SSD of the first ZNS SSD set using the data unit providedto the first XOR module in a current cycle and vertical paritydetermined from a previous cycle.
 15. The system of claim 14, whereinthe machine executable code further causes to: copy a data unit from asecond temporary storage location corresponding to each ZNS SSD of asecond ZNS SSD set of the storage system to a second XOR modulecorresponding to each ZNS SSD of the second ZNS SSD set, whiledetermining a second partial horizontal parity using the data unitstored in the second temporary storage location; and determine avertical parity for each ZNS SSD of the second ZNS SSD set using thedata unit provided to the second XOR module in the current cycle andvertical parity determined from the previous cycle.
 16. The system ofclaim 15, wherein the machine executable code further causes to: utilizethe first and second partial horizontal parity to determine horizontalparity for data stored across each row of each ZNS SSD of the first andsecond ZNS SSD sets, the horizontal parity stored in a parity drive; anddetermine a vertical parity for the parity drive from the horizontalparity stored at each row of the parity drive
 17. The system of claim14, wherein the machine executable code further causes to: transfer thedata unit from a cache line to the first temporary storage location. 18.The system of claim 14, wherein the machine executable code furthercauses to: determine the vertical parity of the parity drive by XORingthe horizontal parity of each row of the parity drive.
 19. The system ofclaim 14, wherein the machine executable code further causes to:determine the first partial horizontal parity from data units stored inthe first temporary storage location corresponding to each ZNS SSD byXORing the data units of each of the first temporary storage location.20. The system of claim 15, wherein the first partial horizontal parity,the second partial horizontal and vertical parity for each ZNS SSD isdetermined by a Zone Transfer Layer (ZTL) of the storage system, the ZTLinterfacing with a RAID layer and a storage sub-system comprising thefirst ZNS SSD set and the second ZNS SSD set.